<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center shopManagement_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub shopManagement_fd0_0'>
					<view class='flex flex-wrap align-center shopManagement_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  shopManagement_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<text class='shopManagement_fd0_0_c1'>店铺管理</text>
					<view class='flex flex-wrap align-center justify-end shopManagement_fd0_0_c0'>
						<!-- <image class='shopManagement_fd0_0_c2_c0' mode="aspectFit" :src='STATIC_URL+"75.png"'></image> -->
					</view>
				<!-- 	<view class='flex flex-wrap align-center justify-end shopManagement_fd0_0_c0'
						@tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/order/addShop/addShop`">
						<image class='shopManagement_fd0_0_c2_c0' mode="aspectFit" :src='STATIC_URL+"75.png"'></image>
					</view> -->
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<view
				class="flex flex-direction flex-wrap align-stretch justify-between benben-position-layout flex shopManagement_flex_1"
				:style="{top:(88+StatusBarRpx)+'rpx', }">
				<view>
					<benben-flex-tabs class-name='shopManagement_benbenTabsfd1_0' v-model="tabs" ref="benben_tabsfd1_0"
						select-mark="benben_tabsfd1_0" key="benben_tabsfd1_0" :open-title-type='false'
						:open-sticky='false' :top='0' :is-show-content='false' :scrollspy='false'
						:tabs-info.sync="tabsInfofd1_0" @change="getShopFunc()">

						<scroll-view @scroll="tabsInfofd1_0.scrollX = $event.detail.scrollLeft" id="benben_tabsfd1_0"
							class="benben-tabs" style="width:750rpx" :scroll-x="true"
							:scroll-left.sync="tabsInfofd1_0.moveX" scroll-with-animation="all .3s ease">
							<view class="benben-tabs-content" id="benben_tabsfd1_0-content">
								<view id="benben_tabsfd1_0-title"
									class="benben-tabs-title flex flex align-center justify-around">
									<view
										:class="{ 'checkTitlefd1_0': tabs == '0', 'flex flex-wrap align-center': true }"
										@tap="tabs = '0'" :id="`benben_tabsfd1_0-title-item-${'0'}`">

										<text>全部</text>

									</view>
									<view
										:class="{ 'checkTitlefd1_0': tabs == '1', 'flex flex-wrap align-center': true }"
										@tap="tabs = '1'" :id="`benben_tabsfd1_0-title-item-${'1'}`">

										<text>审核中</text>

									</view>
									<view
										:class="{ 'checkTitlefd1_0': tabs == '2', 'flex flex-wrap align-center': true }"
										@tap="tabs = '2'" :id="`benben_tabsfd1_0-title-item-${'2'}`">

										<text>审核成功</text>

									</view>
									<view
										:class="{ 'checkTitlefd1_0': tabs == '3', 'flex flex-wrap align-center': true }"
										@tap="tabs = '3'" :id="`benben_tabsfd1_0-title-item-${'3'}`">

										<text>审核失败</text>

									</view>
								</view>
								<view :style="{ left: tabsInfofd1_0.lineleft, maxWidth: tabsInfofd1_0.lineWidth ,}"
									id="benben_tabsfd1_0-line"
									class="benben-tabs-line flex benben-flex-tabs-line shopManagement_linefd1_0"></view>
							</view>
						</scroll-view>

					</benben-flex-tabs>

				</view>

			</view>
			<view :style="{height: '90rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout shopManagement_flex_2">
				<template v-for='(item,key0) in shopList'>
					<view class='flex flex-direction flex-wrap align-stretch shopManagement_fd2_0' :key='key0'>
						<view class='flex flex-wrap align-center justify-end shopManagement_fd2_0_c0'>
							<text class='shopManagement_fd2_0_c0_c0' v-if=" item.examine=='1'">审核中</text><text
								class='shopManagement_fd2_0_c0_c0' v-if=" item.examine=='2'">审核成功</text><text
								class='shopManagement_fd2_0_c0_c0' v-if=" item.examine=='3'">审核失败</text>
						</view>
						<view class='flex flex-wrap align-center shopManagement_fd2_0_c1' @tap.stop="handleJumpDiy"
							data-type="navigateTo"
							:data-url="`/pages/order/storeDetails/storeDetails?id=${item.store_id}`">
							<image class='shopManagement_fd2_0_c1_c0' mode="aspectFill" :src='item.store_logo'></image>
							<view class='flex flex-direction flex-wrap align-stretch flex-sub'>
								<text class='flex-sub shopManagement_fd2_0_c1_c1_c0'>{{item.store_name}}</text>
								<view class='flex flex-wrap align-center'>
									<text class='shopManagement_fd2_0_c1_c1_c1_c0'>地址：</text>
									<text
										class='flex-sub shopManagement_fd2_0_c1_c1_c1_c1'>{{item.store_address}}</text>
								</view>
							</view>
						</view>
						<view class='flex flex-wrap align-center justify-end shopManagement_fd2_0_c2'
							v-if=" item.examine=='2'">
							<button class='shopManagement_fd2_0_c2_c0' @tap.stop="handleJumpDiy" data-type="navigateTo"
								:data-url="`/pages/order/addShop/addShop?id=${item.store_id}`">编辑</button>
						</view>
						<view class='flex flex-wrap align-center justify-end shopManagement_fd2_0_c2'
							v-if="item.examine=='3'">
							<button class='shopManagement_fd2_0_c2_c0' @tap.stop="handleJumpDiy" data-type="navigateTo"
								:data-url="`/pages/order/addShop/addShop?id=${item.store_id}&shopID=${shopID}`">重新提交</button>
						</view>
					</view>
				</template>
				<fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
					:listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</view>
</template>
<script>
	import pagingList from '@/common/mixin/paging_list.js';
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},
		mixins: [pagingList],

		data() {
			return {
				"tabsInfofd1_0": {
					lineleft: '',
					lineWidth: '',
					moveX: 0,
					scrollX: 0,
					PageScrollX: 0
				},
				"minixPagingListsApi": "",
				"pageingListApiMethod": "",
				"allowOnloadGetList": false,
				"keyword": "",
				"shopList": [],
				"tabs": "0",
				"shopID": uni.getStorageSync('shopID') || ''
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},
			userInfo: {
				get() {
					return this.$store.state.userInfo
				},
				set() {
					this.$store.commit('updateUserInfo', value)
				},
			}
		},
		watch: {},
		onLoad(options) {
			
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.getShopFunc()
			this.shopID = uni.getStorageSync('shopID') || ''
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取店铺列表
			getShopFunc() {
				this.minixPagingListsApi = global.apiUrls.post641e88b843d57;
				this.pageingListApiMethod = 'get';
				this.allowOnloadGetList = false;
				this.pagingListPostDataContent = {
					keyword: this.keyword,
					user_id: this.userInfo.id,
					examine: this.tabs
				}
				this.listData = [];
				this.shopList = this.listData;
				this.pagingListToggle();

			},
			pagingListPostData() {
				return this.pagingListPostDataContent
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: rgba(248, 248, 248, 1);
		background-size: 100% auto;
	}

	.shopManagement_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.shopManagement_fd0_0_c2_c0 {
		width: 40rpx;
		height: 40rpx;
	}

	.shopManagement_fd0_0_c1 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 50rpx;
	}

	.shopManagement_fd0_0_c0_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
		line-height: 88rpx;
	}

	.shopManagement_fd0_0_c0 {
		width: 200rpx;
		height: 88rpx;
	}

	.shopManagement_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.shopManagement_flex_1 {
		background: rgba(255, 255, 255, 1);
		width: 750rpx;
		height: 90rpx;
		overflow: hidden;
		z-index: 10;
		top: 88rpx;
		background-size: 100% auto;
	}

	.shopManagement_linefd1_0 {
		background: #d53215;
		width: 32rpx;
		height: 10rpx;
		top: 80rpx;
		background-size: 100% auto !important;
		border-radius: 0rpx 0rpx 16rpx 16rpx;
	}

	.checkTitlefd1_0 {
		font-weight: 700 !important;
		font-size: 28rpx !important;
		color: rgba(230, 0, 0, 1) !important;
		background-color: rgba(255, 255, 255, 0) !important;
	}

	::v-deep .shopManagement_benbenTabsfd1_0 {
		width: 750rpx;
		height: 88rpx;
		white-space: nowrap;
		text-align: center;
	}

	.shopManagement_flex_2 {
		padding: 24rpx 24rpx 0rpx 24rpx;
	}

	.shopManagement_fd2_0_c2_c0 {
		background: #E31D1A;
		border-radius: 27rpx 27rpx 27rpx 27rpx;
		font-size: 24rpx;
		color: #fff;
		width: 140rpx;
		height: 54rpx;
		line-height: 54rpx;
		margin: 0rpx 0rpx 0rpx 24rpx;
	}

	.shopManagement_fd2_0_c2 {
		border-top: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.shopManagement_fd2_0_c1_c1_c1_c1 {
		font-size: 24rpx;
		font-weight: 400;
		color: rgba(153, 153, 153, 1);
		line-height: 33rpx;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.shopManagement_fd2_0_c1_c1_c1_c0 {
		font-size: 24rpx;
		font-weight: 400;
		color: rgba(153, 153, 153, 1);
		line-height: 33rpx;
	}

	.shopManagement_fd2_0_c1_c1_c0 {
		font-size: 32rpx;
		font-weight: 400;
		color: #333;
		line-height: 45rpx;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		margin: 0rpx 0rpx 32rpx 0rpx;
	}

	.shopManagement_fd2_0_c1_c0 {
		width: 140rpx;
		height: 140rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		margin: 0rpx 24rpx 0rpx 0rpx;
	}

	.shopManagement_fd2_0_c1 {
		margin: 0rpx 0rpx 32rpx 0rpx;
	}

	.shopManagement_fd2_0_c0_c0 {
		text-align: right;
		font-size: 32rpx;
		font-weight: 400;
		color: #333;
		line-height: 40rpx;
	}

	.shopManagement_fd2_0_c0 {
		border-bottom: 1px solid #eee;
		padding: 0rpx 0rpx 32rpx 0rpx;
		margin: 0rpx 0rpx 32rpx 0rpx;
	}

	.shopManagement_fd2_0 {
		background: rgba(255, 255, 255, 1);
		background-size: 100% auto !important;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		padding: 32rpx 32rpx 0rpx 32rpx;
		margin: 0rpx 0rpx 24rpx 0rpx;
	}
</style>